<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        /* 
            作业1：将dfs(包括大写的)替换成* 
            const str = "asdfbhSiiasbpcnaasdFfa;sdDf";
         */
        const str = "asdfbhSiiasbpcnaasdFfa;sdDf";
        const re1 = /(d|f|s)/gi;
        const result = str.replace(re1, "*");
        console.log(result);

    </script>
</body>

</html>